let mongoose = require('mongoose');

let schema = new mongoose.Schema({
    type: { // 渠道ID
        type: String,
    },
    group: { // 分组（渠道统计、其他统计）
        type: String,
    },
    count: { // 统计出来的数量
        type: Number,
        default:0
    },
    timeTick: {
        type: Number,
        default:0
    },
    setCount: { // 自定义的量
        type: Number,
        default: 0
    },
}, {versionKey: false});

schema.index({type: 1,group:1,timeTick:-1}, {unique: true});

schema.statics = {};

schema.methods = {};

module.exports = schema;